:root {
    --primary: #6A65FE;
    --bg: #0E1420;
    --tabs-bg: #111926;
    --border: #2E323E;
    --text-color: #FFF;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 1rem;
    background: var(--bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabs-container {
    width: 100%;
    max-width: 50rem;
    display: flex;
    user-select: none;
    overflow: hidden;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--tabs-bg);
    border: 1px solid var(--border);
    container-type: inline-size;
    container-name: tabs-container;
}

.tabs-layout {
    display: flex;
    flex-direction: column;
}

.tab-content-wrapper {
    overflow-y: hidden;
    overflow-x: auto;
    height: 34rem;
    width: 100%;
    color: var(--text-color);
    transition: all 0.45s ease-in-out;
}

.tab-content h2 {
    display: none;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tab-content {
    margin-top: 0.25rem;
    display: block;
    font-size: 1rem;
    max-width: 100%;
    height: 34rem;
    padding: 0 1rem;
    transition: all 0.45s ease-in-out;
}

.tab-content img {
    width: 90%;
}

.tabs {
    position: relative;
    flex-direction: column;
    list-style-type: none;
    display: none;
    min-width: 18rem;
}

.tabs-select {
    display: block;
    appearance: none;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--tabs-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    box-sizing: border-box;
    font-weight: bold;
    cursor: pointer;
}

.table-select:before {
    content: "\f078";
    color: var(--text-color);
    position: absolute;
    z-index: 1;
    right: 0.3125;
    top: 0.375rem;
}

@container tabs-container (min-width: 40rem) {
    .tabs-container {
        display: flex;
        flex-direction: column;
    }

    .tabs {
        display: flex;
    }

    .tab-content h2 {
        display: block;
    }

    .tabs-select {
        display: none;
    }

    .tabs-layout {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }
}

.tabs ul {
    gap: 1rem;
}

.tabs li {
    padding: 0.25rem;
}

.tabs a {
    position: relative;
    display: flex;
    text-decoration: none;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-align: left;
    justify-content: start;
    height: 5rem;
    padding: 0 1rem;
    width: 100%;
    align-items: center;
    gap: 1rem;
}

.tabs a img {
    height: 1.25rem;
    width: 1.25rem;
}

.tabs .active,
.tabs a:hover {
    font-weight: 700;
    outline: none;
    background: var(--primary);
    color: var(--text-color);
    border-radius: 1rem;
}

.tabs a svg {
    min-width: 2.5rem;
    min-height: 2.5rem;
    stroke: var(--text-color);
}